from django.urls import path

from apps.OrderManagement.views import ListUserPackageView, CreateUserPackageView, UpdateUserPackageView, \
    DeleteUserPackageView, ListOrderView, CreateOrderView, UpdateOrderView, DeleteOrderView, RetrieveOrderView

urlpatterns = [
    path('', ListOrderView.as_view(), name='order-list'),  # 订单列表
    path('create/', CreateOrderView.as_view(), name='order-create'),  # 创建订单
    path('info/<str:order_id>/', RetrieveOrderView.as_view(), name='order-info'),  # 订单详情
    path('update/<str:order_id>/', UpdateOrderView.as_view(), name='order-update'),  # 更新订单
    path('delete/', DeleteOrderView.as_view(), name='order-delete'),  # 删除订单
    path('user-package/', ListUserPackageView.as_view(), name='user-package-list'),  # 用户套餐列表
    path('user-package/create/', CreateUserPackageView.as_view(), name='user-package-create'),  # 创建用户套餐
    path('user-package/update/<str:user_package_id>/', UpdateUserPackageView.as_view(), name='user-package-update'),  # 更新用户套餐
    path('user-package/delete/', DeleteUserPackageView.as_view(), name='user-package-delete'),  # 删除用户套餐
]
